package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * @Description 事件处理日志
 * @Author cwq
 * @Data 2021/7/1 11:21
 */
@FieldTypeAnnotation(tableName = "t_l_ck_dunhuangshiku_event_action", desc = "敦煌-事件处理日志", autoSave = true, uploadCk = true)
public class LogDunHuangShiKuEventAction extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "队伍id")
    private int teamId;

    @FieldTypeAnnotation(desc = "所在区域id")
    private int regionId;

    @FieldTypeAnnotation(desc = "事件类型")
    private int eventType;

    @FieldTypeAnnotation(desc = "处理类型  0攻击 1接受 2绕过 3标记 4 领取队友互助奖励/协助攻击")
    private int type;

    @FieldTypeAnnotation(desc = "目标id (如果是玩家事件记录玩家id，如果是藏金洞事件 记录触发的mallId) ")
    private long targetId;

    @FieldTypeAnnotation(desc = "目标是否标记（0否1标记）")
    private int status;

    @FieldTypeAnnotation(desc = "攻击前血量")
    private long beforeAttackBlood;

    @FieldTypeAnnotation(desc = "攻击后血量")
    private long afterAttackBlood;

    @FieldTypeAnnotation(desc = "伤害")
    private long damage;

    @FieldTypeAnnotation(desc = "奖励")
    private String reward;

    public LogDunHuangShiKuEventAction(int activityId, long userId, int teamId, int regionId, int eventType, int type, long targetId, int status, long beforeAttackBlood, long afterAttackBlood, long damage, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.teamId = teamId;
        this.regionId = regionId;
        this.eventType = eventType;
        this.type = type;
        this.targetId = targetId;
        this.status = status;
        this.beforeAttackBlood = beforeAttackBlood;
        this.afterAttackBlood = afterAttackBlood;
        this.damage = damage;
        this.reward = reward;
    }

    public long getUserId() {
        return userId;
    }

}
